#include "CInGameScene.h"
namespace game
{
	CInGameScene::~CInGameScene()
	{
			
	}

	CInGameScene::CInGameScene(scene::IGameSceneManager* gameSceneManager): CBaseScene(gameSceneManager), 
																			Character(0)	
	{
		
	}

	CInGameScene::CInGameScene()
	{
		//not used
	}

	void CInGameScene::addDynamicSceneObject(scene::IDynamicSceneObject* sceneObj)
	{
		if(sceneObj->getType() == scene::ESO_CHARACTER)
		{
			this->Character = sceneObj;
		}
		  
		CBaseScene::addDynamicSceneObject(sceneObj);
	}

	bool CInGameScene::onUserAction(SUserAction action)
	{
		bool result = false;
		
		switch(action.KeyCode)
		{
		case irr::KEY_LEFT:
			{
				
				result = true;
				break;
			}
		default:
			{
				result = false;
				break;
			}
		}

		return result;
	}

	

}
